#include <glib.h>

void test_func_a(void)
{
    if(g_test_verbose()) {
        g_print("in verbose mode \n");
    }

    if(g_test_quiet()) {
        g_print("in quiet mode \n");
    }
}

void test_func_b(void)
{
    if(g_test_perf()) {
        g_print("\n in perf mode \n");
    }

    if(g_test_thorough()) {
        g_print("\n in thorough mode \n");
    }

    if(g_test_slow()) {
        g_print("\n in slow mode \n");
    }

    if(g_test_quick()) {
        g_print("\n in quick mode \n");
    }
}

int main(int argc, char **argv)
{
    g_test_init(&argc, &argv, NULL);

    g_test_add_func("/test1/a", test_func_a);
    g_test_add_func("/test2/b", test_func_b);

    return g_test_run();
}
